package evil.wolf.business;


import net.sf.jasperreports.engine.JRDefaultScriptlet;
import net.sf.jasperreports.engine.JRScriptletException;
public class ReportScriptlet extends JRDefaultScriptlet {
	
	public String convertIntToWords(int value) throws JRScriptletException {

        NumToWordsConverter n2w = new NumToWordsConverter();

        return n2w.startConvert(value);
	}
	
//	@SuppressWarnings("static-access")
//	public static void main(String args[]) {
//		
//		ReportScriptlet reportScriptlet = new ReportScriptlet();
//		try {
//			System.out.print(reportScriptlet.convertIntToWords(400202));
//		} catch (JRScriptletException e) {
//			JOptionPane.showMessageDialog(null,
//	    			"can not convert.", "ERROR", JOptionPane.INFORMATION_MESSAGE);
//			e.printStackTrace();
//		}
//	
//	}
}
